Row echelon form of a matrix